/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-07 19:44:56  
 * Copyright (c) 2015- joysuch-版权所有     
 */

package com.joysuch.wwyt.bp.repository;

import java.util.List;
import java.util.Optional;

import com.joysuch.wwyt.bp.entity.BpWorkSafetyCertMethod;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * BpWorkSafetyCertMethodDao
 * 
 */
public interface BpWorkSafetyCertMethodDao
        extends JpaRepository<BpWorkSafetyCertMethod, Long>, QuerydslPredicateExecutor<BpWorkSafetyCertMethod> {
    public Page<BpWorkSafetyCertMethod> findAll(Specification<BpWorkSafetyCertMethod> spec, Pageable pageable);

    public BpWorkSafetyCertMethod save(BpWorkSafetyCertMethod bean);

    public void delete(BpWorkSafetyCertMethod bean);

    public List<BpWorkSafetyCertMethod> findByWorkId(Long workId);

    public void deleteByWorkId(Long workId);

    List<BpWorkSafetyCertMethod> findBySingerId(Long singerId);
}
